<include file="Public:header" />
<h2 class="siteSubject"><s></s><b><p><button id="btnSiteAdd">增加网站</button></p></b></h2>

<div id="content">
    <volist name="page.record" id="vo">
    <table class="table02" style="margin-bottom:10px;">
        <thead>
            <tr>
                <th>网站名称</th>
                <th>网站类型</th>
                <th>添加时间</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>{$vo.site_name}</td>
                <td>{:getImplodeSiteTypeCnById($vo['site_type'])}</td>
                <td>{$vo.site_create_time}</td>
                <td class="tAction">
                    <a href="javascript:;" siteId="{$vo.site_id}" action="addDomain">增加网址</a>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <ul class="siteDomainList">
                        <volist name=":getDomainBySiteId($vo['site_id'], $_GET['site_domain'], $_GET['site_status'])" id="vo2">
                        <li><span class="domainName">[{:getSiteStatusCn($vo2['s_d_status'])}] <a href="{:C('REDIRECT_APP')}?url={$vo2.s_d_domain}" target="_blank">{$vo2.s_d_domain}</a></span></li>
                        </volist>
                    </ul>
                </td>
            </tr>
        </tbody>
    </table>
    </volist>
</div><!--/#content-->

<script type="text/javascript">
$(function(){
    Site.add.init();
    Domain.edit.init();
});
</script>

<div class="pageZone">{$page|uiGetPage}</div><!--/.pageZone-->
<include file="Public:footer" />
